package com.lwx.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lwx.sys.domain.Role;
import com.lwx.sys.utils.DataGridView;
import com.lwx.sys.vo.RoleVo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lwx
 * @since 2020-04-14
 */
public interface RoleService extends IService<Role> {

    DataGridView loadAllRole(RoleVo roleVo);

    void deleteRole(Integer id);

    void batchDeleteRole(Integer[] ids);

    void addRole(Role role);

    void updateRole(Role role);

    void saveRolePermission(Integer roleId, Integer[] pids);

    DataGridView queryRolesByUserId(Integer userId);

    List<String> queryRoleNamesByUserId(Integer id);
}
